package com.xxg.renrenlogin.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户名密码登录
 *
 * @author xuxiaogang
 * @date 2021-12-13
 */
@Data
@ApiModel(value = "PasswordLoginQuery", description = "用户名密码登录")
public class PasswordLoginQuery {
    @NotNull(message = "userName不能为null")
    @NotBlank(message = "userName不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String userName;
    @NotNull(message = "password不能为null")
    @NotBlank(message = "password不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;
}
